<?php


				$content = "<h2>News archive:</h2>";
				$db = new DB("news");
				$db->setColPrefix("news_");
				$db->setSort("news_id DESC");
				$db->select();
				
							$content .= "
						<table width='100%'><tr><td><strong>Title</strong></td><td><strong>Published</strong></td><td><strong>By</strong></td></tr>";
						while($db->nextRecord()){
							$content .= "
								<tr>
									<td><a href='".iUrl::makeClean("?lang_id=en&page_url=news&var_a=".$db->id)."'>".$db->title."</a></td>
									<td>".showdate("longdate", $db->date)."</td>
									<td>".iKernel::getUser("firstname", $db->poster)." ".iKernel::getUser("lastname", $db->poster)."</td>
								</tr>";
						}
						$content .= "</table>";